package indi.kider.server.apartment.mapper;

import indi.kider.common.model.apartment.Community;
import indi.kider.common.model.woniubus.HouseVo;
import indi.kider.common.model.apartment.HouseApplet;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 公寓 房源
 * 二期新接口
 */
public interface HouseMapper{
    Map<String, Object> getHouseUserCntMap(@Param("housesId") Long housesId);

    /**
     * 根据合作方用户id 获取公寓列表
     * @return
     */
    List<Community> getCommunityByPartId(@Param("employeePartId") Long employeePartId);
    /**
     * 根据楼栋管理员id  获取公寓列表
     * @return
     */
    List<Community> getCommunityByLouId(@Param("employeeLouId") Long employeePartId);


    List<Map> queryHouseList(@Param("communityId") Long communityId);


    HouseVo getHouseById(@Param("houseId") Long houseId);

    List<Map>  getHouse(HouseApplet houseApplet);
}